<?php
	include_once("../util/constant.php");
    include_once("../util/authUtil.php");
    $url = basename($_SERVER['PHP_SELF']);
    $cssClass = "active";
    if(isset($_GET["action"])){
        $action = $_GET["action"];
    }else{
        $action = 0;
    }
    $perm_array = $_SESSION["permissions"];
    
    $index = "";
    $category = "";
    $categoryDetail = "";
    $product = "";
    $productDetail = "";
    $receipt = "";
    $receiptDetail = "";
	$branch = "";
    $branchDetail = "";
	$liveSupport = "";
	$discount = "";
	$discountDetail = "";
	$productStatus = "";
    $productStatusDetail = "";
	$page = "";
    $pageDetail = "";
    $article = "";
    $articleDetail = "";
	$specialProduct = "";
    $specialProductDetail = "";
    $banner = "";
    $bannerDetail = "";
    $bannerEnabler = "";
	$newsletter = "";
	$newProductBanner = "";
	$newProductBannerDetail = "";
    $userGroup = "";
    $userGroupDetail = "";
    $user = "";    
    $userDetail = "";
	$customer = "";
	$comment = "";
    $bid = "";
    $optionItem = "";
    $optionItemDetail = "";    
	
	switch($url){
        case "index.php": $index = "1"; break;
        case "category.php": $category = "1"; break;
        case "category-detail.php": $categoryDetail = "1"; break;
        case "product.php": $product = "1"; break;
        case "product-detail.php": $productDetail = "1"; break;
        case "receipt.php": $receipt = "1"; break;
        case "receipt-detail.php": $receiptDetail = "1"; break;
        case "comment.php": $comment = "1"; break;
        case "bid.php": $bid = "1"; break;
        case "branch.php": $branch = "1"; break;
        case "branch-detail.php": $branchDetail = "1"; break;
        case "live-support.php": $liveSupport = "1"; break;
        case "discount.php": $discount = "1"; break;
        case "discount-detail.php": $discountDetail = "1"; break;
        case "product-status.php": $productStatus = "1"; break;
        case "product-status-detail.php": $productStatusDetail = "1"; break;
        case "page.php": $page = "1"; break;
        case "page-detail.php": $pageDetail= "1"; break;
        case "article.php": $article = "1"; break;
        case "article-detail.php": $articleDetail = "1"; break;
        case "special-product.php": $specialProduct = "1"; break;
    	case "special-product-detail.php": $specialProductDetail = "1"; break;
        case "bid-product.php": $bidProduct = 1; break;
        case "bid-product-detail.php": $bidProductDetail = 1; break;
        case "banner_list.php": $banner = "1"; break;
        case "banner_detail.php": $bannerDetail = "1"; break;
        case "banner_enabler.php": $bannerEnabler = "1"; break;
        case "newsletter.php": $newsletter = "1"; break;
        case "new-product-banner.php": $newProductBanner = "1"; break;
        case "new-product-banner-detail.php": $newProductBannerDetail = "1"; break;
        case "user.php": $user = "1"; break;
        case "user-detail.php": $userDetail = "1"; break;
        case "user-group.php": $userGroup = "1"; break;
        case "user-group-detail.php": $userGroupDetail = "1"; break;	
        case "customer.php": $customer = "1"; break;
        case "optionitem.php": $optionItem = "1"; break;
        case "optionitemdetail.php": $optionItemDetail = "1"; break;
    }
?>
<!-- left menu starts -->
<div class="span2 main-menu-span">
	<div class="well nav-collapse sidebar-nav">
		<ul class="nav nav-tabs nav-stacked main-menu">
			<li><a class="ajax-link" href="index.php"><span class="hidden-tablet bolded">Thông tin tổng hợp</span></a></li>
			<?php
                $require_perm = array("create category","edit category","delete category","view category");
                if(authUtil($require_perm,$perm_array,false)){
            ?>
            <li class="<?php if($category != "" || $categoryDetail != "") echo $cssClass;?>">
				<a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý loại sản phẩm</span></a>
				<ul class="submenu <?php if($category != "" || $categoryDetail != "") echo $cssClass;?>">
                    <?php
                        $require_perm = array("create category");
                        if(authUtil($require_perm,$perm_array,true)){
                    ?>
                            <li class="<?php if($categoryDetail != "" && $action == NEW_ACTION) echo $cssClass;?>"><a class="ajax-link" href="category-detail.php?action=<?php echo NEW_ACTION;?>"><span class="hidden-tablet">Tạo loại sản phẩm</span></a></li>
                    <?php
                        }
                    ?>
                    <?php
                        $require_perm = array("view category","edit category");
                        if(authUtil($require_perm,$perm_array,false)){
                    ?>
					       <li class="<?php if($category != "") echo $cssClass;?>"><a class="ajax-link" href="category.php"><span class="hidden-tablet">Danh sách loại sản phẩm</span></a></li>
                    <?php
                        }
                    ?>
                    <?php
                        $require_perm = array("edit category");
                        if(authUtil($require_perm,$perm_array,true)){
                    ?>      
                    <li class="<?php if($categoryDetail != "" && $action == EDIT_ACTION) echo $cssClass;?>"><a class="ajax-link" href="category.php"><span class="hidden-tablet">Cập nhật loại sản phẩm</span></a></li>
                    <?php
                        }
                    ?>
				</ul>
			</li>
            <?php
                }
            ?>
            
            <?php
                $require_perm = array("create optionitem","edit optionitem","delete optionitem","view optionitem");
                if(authUtil($require_perm,$perm_array,false)){
            ?>
            <li class="<?php if($optionItem != "" || $optionItemDetail != "") echo $cssClass;?>">
				<a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý thuộc tính sản phẩm</span></a>
				<ul class="submenu <?php if($optionItem != "" || $optionItemDetail != "") echo $cssClass;?>">
                    <?php
                        $require_perm = array("view optionitem","edit optionitem");
                        if(authUtil($require_perm,$perm_array,false)){
                    ?>
					       <li class="<?php if($category != "") echo $cssClass;?>"><a class="ajax-link" href="optionitem.php"><span class="hidden-tablet">Nội dung thuộc tính</span></a></li>
                    <?php
                        }
                    ?>
                    <?php
                        $require_perm = array("edit optionitem");
                        if(authUtil($require_perm,$perm_array,true)){
                    ?>      
                    <li class="<?php if($optionItemDetail != "" && $action == EDIT_ACTION) echo $cssClass;?>"><a class="ajax-link" href="optionitem.php"><span class="hidden-tablet">Cập nhật nội dung thuộc tính</span></a></li>
                    <?php
                        }
                    ?>
				</ul>
			</li>
            <?php
                }
            ?>
            
            
            <?php
				$require_perm = array("create product","edit product","delete product","view product", "create product_status", "edit product_status", "delete product_status", "view product_status", "create promotion", "edit promotion", "delete promotion", "view promotion");
                if(authUtil($require_perm,$perm_array,false)){
            ?>
                <li class="<?php if($product != "" || $productDetail != "" || $discount != "" || $discountDetail != "" || $productStatus != "" || $productStatusDetail != "") echo $cssClass;?>">
                    <a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý sản phẩm</span></a>
                    <ul class="submenu">
                    	<?php
							$require_perm = array("create promotion");
                        	if(authUtil($require_perm,$perm_array,true)){
                        ?>
                        	<li class="<?php if($discountDetail != "") echo $cssClass;?>"><a class="ajax-link" href="discount-detail.php?action=<?php echo NEW_ACTION;?>"><span class="hidden-tablet">Tạo khuyến mãi</span></a></li>
                        <?php
							}
                        ?>
                        
                        <?php
							$require_perm = array("view promotion", "edit promotion");
                        	if(authUtil($require_perm,$perm_array,true)){
                        ?>
                        	<li class="<?php if($discount != "") echo $cssClass;?>"><a class="ajax-link" href="discount.php"><span class="hidden-tablet">Danh sách khuyến mãi</span></a></li>
                        <?php
							}
                        ?>
                        
                        <?php
							$require_perm = array("edit promotion");
                        	if(authUtil($require_perm,$perm_array,true)){
                        ?>
                        	<li class="<?php if($discountDetail != "" && $action == EDIT_ACTION) echo $cssClass;?>"><a class="ajax-link sep" href="discount.php"><span class="hidden-tablet">Cập nhật khuyến mãi</span></a></li>
                        <?php
							}
                        ?>
                        
                        <?php
							$require_perm = array("create product_status");
                        	if(authUtil($require_perm,$perm_array,true)){
                        ?>
                        	<li class="<?php if($productStatusDetail != "") echo $cssClass;?>"><a class="ajax-link" href="product-status-detail.php?action=<?php echo NEW_ACTION;?>"><span class="hidden-tablet">Tạo trạng thái sản phẩm</span></a></li>
                        <?php
							}
                        ?>
                        
                        <?php
							$require_perm = array("view product_status", "edit product_status");
                        	if(authUtil($require_perm,$perm_array,false)){
                        ?>
                        <li class="<?php if($productStatus != "") echo $cssClass;?>"><a class="ajax-link" href="product-status.php"><span class="hidden-tablet">Danh sách trạng thái sản phẩm</span></a></li>
                        <?php
							}
                        ?>
                        
                        <?php
							$require_perm = array("edit product_status");
                        	if(authUtil($require_perm,$perm_array,true)){
                        ?>
                        <li class="<?php if($productStatusDetail != "" && $action == EDIT_ACTION) echo $cssClass;?>"><a class="ajax-link sep" href="product-status.php"><span class="hidden-tablet">Cập nhật trạng thái sản phẩm</span></a></li>
                        <?php
							}
                        ?>
                        
                        <?php
							$require_perm = array("create product");
                        	if(authUtil($require_perm,$perm_array,true)){
                        ?>
                        	<li class="<?php if($productDetail != "") echo $cssClass;?>"><a class="ajax-link" href="product-detail.php?action=<?php echo NEW_ACTION;?>"><span class="hidden-tablet">Tạo sản phẩm</span></a></li>
                        <?php
							}
                        ?>
                        
                        <?php
							$require_perm = array("view product", "edit product");
                        	if(authUtil($require_perm,$perm_array,true)){
                        ?>
	                        <li class="<?php if($product != "") echo $cssClass;?>"><a class="ajax-link" href="product.php"><span class="hidden-tablet">Danh sách sản phẩm</span></a></li>
                        <?php
							}
                        ?>
                        
                        <?php
							$require_perm = array("edit product");
                        	if(authUtil($require_perm,$perm_array,true)){
                        ?>
	                        <li class="<?php if($productDetail != "" && $action == EDIT_ACTION) echo $cssClass;?>"><a class="ajax-link" href="product.php"><span class="hidden-tablet">Cập nhật sản phẩm</span></a></li>
                        <?php
							}
                        ?>   
                    </ul>
                </li>
            <?php
				}
            ?>
            
            <?php
				/*$require_perm = array("create special_product", "edit special_product", "delete special_product", "view special_product");
				if(authUtil($require_perm,$perm_array,false)){
			?>
                <li class="<?php if($specialProduct != "" || $specialProductDetail != "") echo $cssClass;?>">
                    <a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý sản phẩm đặc biệt</span></a>
                    <ul class="submenu <?php if($specialProduct != "" || $specialProductDetail != "") echo $cssClass;?>">
                    	<?php
							$require_perm = array("create special_product");
                        	if(authUtil($require_perm,$perm_array,true)){
                        ?>
                        	<li class="<?php if($specialProductDetail != "") echo $cssClass;?>"><a class="ajax-link" href="special-product-detail.php?action=<?php echo NEW_ACTION;?>" ><span class="hidden-tablet">Tạo sản phẩm đặc biệt</span></a></li>
                        <?php
							}
						?>
                        
                        <?php
							$require_perm = array("view special_product", "edit special_product");
                        	if(authUtil($require_perm,$perm_array,false)){
                        ?>
                        <li class="<?php if($specialProduct != "") echo $cssClass;?>"><a class="ajax-link" href="special-product.php" ><span class="hidden-tablet">Danh sách sản phẩm đặc biệt</span></a></li>
                        <?php
							}
						?>
                        
                        <?php
							$require_perm = array("edit special_product");
                        	if(authUtil($require_perm,$perm_array,true)){
                        ?>
                        <li class="<?php if($specialProductDetail != "" && $action == EDIT_ACTION) echo $cssClass;?>"><a class="ajax-link" href="special-product.php" ><span class="hidden-tablet">Cập nhật sản phẩm đặc biệt</span></a></li>
                        <?php
							}
						?>
                    </ul>
                </li>
            <?php
				}*/
            ?>
            
            <?php
				$require_perm = array("edit receipt", "view receipt");
				if(authUtil($require_perm,$perm_array,false)){
			?>
            <li class="<?php if($receipt != "" || $receiptDetail != "") echo $cssClass;?>">
				<a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý hóa đơn</span></a>
                
				<ul class="submenu <?php if($receipt != "") echo $cssClass;?>">
                	<?php
						$require_perm = array("edit receipt", "view receipt");
						if(authUtil($require_perm,$perm_array,false)){
					?>
						<li><a class="ajax-link" href="receipt.php" ><span class="hidden-tablet">Danh sách hóa đơn</span></a></li>	
            		<?php
						}
					?>
				</ul>
			</li>
            <?php
				}
            ?>
            
            <?php
                $require_perm = array("edit comment","view comment");
                if(authUtil($require_perm,$perm_array,false)){
            ?>
                    <li class="<?php if($comment != "") echo $cssClass;?>">
        				<a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý ý kiến khách hàng</span></a>
                        <?php
                            $require_perm = array("view comment","edit comment");
                            if(authUtil($require_perm,$perm_array,false)){
                        ?>
        				<ul class="submenu <?php if($comment != "") echo $cssClass;?>">
        					<li><a class="ajax-link" href="comment.php"><span class="hidden-tablet">Danh sách ý kiến</span></a></li>
        				</ul>
                        <?php
                            }
                        ?>
        			</li>
            <?php
                }
            ?>
                                
            <?php
                $require_perm = array("edit comment","view comment");
                if(authUtil($require_perm,$perm_array,false)){
            ?>
                    <li class="<?php if($bid != "") echo $cssClass;?>">
        				<a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý đấu giá</span></a>
                        <?php
                            $require_perm = array("view comment","edit comment");
                            if(authUtil($require_perm,$perm_array,false)){
                        ?>
        				<ul class="submenu <?php if($comment != "") echo $cssClass;?>">
        					<li><a class="ajax-link" href="bid.php"><span class="hidden-tablet">Danh sách đấu giá</span></a></li>
        				</ul>
                        <?php
                            }
                        ?>
        			</li>
            <?php
                }
            ?>
                                
            <?php
                $require_perm = array("create branch","edit branch","delete branch","view branch");
                if(authUtil($require_perm,$perm_array,false)){
            ?>
    			<li class="<?php if($branch != "" || $branchDetail != "") echo $cssClass;?>">
    				<a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý chi nhánh</span></a>
    				<ul class="submenu">
                        <?php
                            $require_perm = array("create branch");
                            if(authUtil($require_perm,$perm_array,true)){
                        ?>
                                <li class="<?php if($branchDetail != "" && $action == NEW_ACTION) echo $cssClass;?>"><a class="ajax-link" href="branch-detail.php?action=<?php echo NEW_ACTION;?>"><span class="hidden-tablet">Tạo chi nhánh</span></a></li>
                        <?php
                            }
                        ?>
                        <?php
                            $require_perm = array("edit branch","view branch");
                            if(authUtil($require_perm,$perm_array,false)){
                        ?>
                                <li class="<?php if($branch != "" ) echo $cssClass;?>"><a class="ajax-link sep" href="branch.php"><span class="hidden-tablet">Danh sách chi nhánh</span></a></li>
                        <?php
                            }
                        ?>
                        <?php
                            $require_perm = array("edit branch");
                            if(authUtil($require_perm,$perm_array,true)){
                        ?>
                            <li class="<?php if($branchDetail != "" && $action == EDIT_ACTION) echo $cssClass;?>"><a class="ajax-link" href="branch.php"><span class="hidden-tablet">Cập nhật thông tin chi nhánh</span></a></li>
                        <?php
                            }
                        ?>                    
    				</ul>
    			</li>
            <?php
                }
            ?>
            <?php
                /*$require_perm = array("view online_support");
                if(authUtil($require_perm,$perm_array,false)){
            ?>
        			<li class="<?php if($liveSupport != "") echo $cssClass;?>">
        				<a class="ajax-link" href="#"><span class="hidden-tablet bolded">Hỗ trợ trực tuyến</span></a>
        				<ul class="submenu <?php if($liveSupport != "") echo $cssClass;?>">
        					<li><a class="ajax-link" href="../mibew/" target="_blank"><span class="hidden-tablet">Cấu hình</span></a></li>
        				</ul>
        			</li>
            <?php
                }*/
            ?>
            <?php
                $require_perm = array("create banner","edit banner","delete banner","view banner","create new_product_banner","edit new_product_banner","delete new_product_banner","view new_product_banner");
                if(authUtil($require_perm,$perm_array,false)){
            ?>
                    <li class="<?php if($banner != "" || $bannerEnabler != "" || $bannerDetail != "" || $newProductBanner != "" || $newProductBannerDetail != "") echo $cssClass;?>">
        				<a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý banner</span></a>
        				<ul class="submenu">
                        <?php
                            $require_perm = array("create banner");
                            if(authUtil($require_perm,$perm_array,true)){
                        ?>
                            <li class="<?php if($bannerDetail != "" && $action == NEW_ACTION) echo $cssClass;?>"><a class="ajax-link" href="banner_detail.php"><span class="hidden-tablet">Tạo mới banner</span></a></li>
                        <?php
                            }
                        ?>
                        <?php
                            $require_perm = array("edit banner","view banner");
                            if(authUtil($require_perm,$perm_array,false)){
                        ?>
                            <li class="<?php if($banner != "" ) echo $cssClass;?>"><a class="ajax-link" href="banner_list.php"><span class="hidden-tablet">Danh sách banner</span></a></li>
                        <?php
                            }
                        ?>
                        <?php
                            $require_perm = array("edit banner");
                            if(authUtil($require_perm,$perm_array,true)){
                        ?>
                            <li class="<?php if($bannerDetail != "" && $action == EDIT_ACTION) echo $cssClass;?>"><a class="ajax-link" href="banner_list.php"><span class="hidden-tablet">Cập nhật banner</span></a></li>
                        <?php
                            }
                        ?>
                        <?php
                            $require_perm = array("edit banner");
                            if(authUtil($require_perm,$perm_array,true)){
                        ?>
                            <li class="<?php if($bannerEnabler != "" ) echo $cssClass;?>"><a class="ajax-link sep" href="banner_enabler.php"><span class="hidden-tablet">Tắt/bật banner</span></a></li>
                        <?php
                            }
                        ?>
                        
                        <?php
                            $require_perm = array("create new_product_banner");
                            if(authUtil($require_perm,$perm_array,true)){
                        ?>
                            <li class="<?php if($newProductBannerDetail != "" ) echo $cssClass;?>"><a href="new-product-banner-detail.php?action=<?php echo NEW_ACTION;?>"><span class="hidden-tablet">Tạo banner sản phẩm mới</span></a></li>
                        <?php
							}
                        ?>
                        
                        <?php
                            $require_perm = array("view new_product_banner", "edit new_product_banner");
                            if(authUtil($require_perm,$perm_array,false)){
                        ?>
                            <li class="<?php if($newProductBanner != "" ) echo $cssClass;?>"><a href="new-product-banner.php"><span class="hidden-tablet">Danh sách banner sản phẩm mới</span></a></li>
                        <?php
							}
                        ?>
        				</ul>
        			</li>
            <?php
                }
            ?>
            <?php
                $require_perm = array("create page","edit page","delete page","view page","create article","edit article","delete article","view article");
                if(authUtil($require_perm,$perm_array,false)){
            ?>
                    <li class="<?php if($page != "" || $pageDetail != "" || $article != "" || $articleDetail != "") echo $cssClass;?>">
        				<a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý trang tin tức</span></a>
        				<ul class="submenu <?php if($page != "" || $pageDetail != "" || $article != "" || $articleDetail != "") echo $cssClass;?>">
                            <?php
                                $require_perm = array("create page");
                                if(authUtil($require_perm,$perm_array,true)){
                            ?>
        					        <li class="<?php if($pageDetail != "" && $action == NEW_ACTION) echo $cssClass;?>"><a class="ajax-link" href="page-detail.php?action=<?php echo NEW_ACTION; ?>"><span class="hidden-tablet">Tạo mới nhóm trang tin tức</span></a></li>
                            <?php
                                }
                            ?>
                            <?php
                                $require_perm = array("edit page","view page");
                                if(authUtil($require_perm,$perm_array,false)){
                            ?>
                                    <li class="<?php if($page != "") echo $cssClass;?>"><a class="ajax-link" href="page.php"><span class="hidden-tablet">Quản lý nhóm trang tin tức</span></a></li>
                            <?php
                                }
                            ?>
                            <?php
                                $require_perm = array("edit page");
                                if(authUtil($require_perm,$perm_array,true)){
                            ?>
                                    <li class="<?php if($pageDetail != "" && $action == EDIT_ACTION) echo $cssClass;?>"><a class="ajax-link" href="page.php"><span class="hidden-tablet">Cập nhật nhóm trang tin tức</span></a></li>
                            <?php
                                }
                            ?>
                            <?php
                                $require_perm = array("create article");
                                if(authUtil($require_perm,$perm_array,true)){
                            ?>
                                    <li class="<?php if($articleDetail != "" && $action == NEW_ACTION) echo $cssClass;?>"><a class="ajax-link" href="article-detail.php?action=<?php echo NEW_ACTION; ?>"><span class="hidden-tablet">Tạo mới nội dung trang tin tức</span></a></li>
                            <?php
                                }
                            ?>
                            <?php
                                $require_perm = array("edit article","view article");
                                if(authUtil($require_perm,$perm_array,false)){
                            ?>
                                    <li class="<?php if($article != "" ) echo $cssClass;?>"><a class="ajax-link" href="article.php"><span class="hidden-tablet">Quản lý nội dung trang tin tức</span></a></li>
                            <?php
                                }
                            ?>       
                            <?php
                                $require_perm = array("edit article");
                                if(authUtil($require_perm,$perm_array,true)){
                            ?>
                                    <li class="<?php if($articleDetail != "" && $action == EDIT_ACTION) echo $cssClass;?>"><a class="ajax-link" href="article.php"><span class="hidden-tablet">Cập nhật nội dung trang tin tức</span></a></li>
                            <?php
                                }
                            ?> 
        				</ul>
        			</li>
            <?php
                }
            ?>
            
            <?php
                $require_perm = array("view newsletter");
                if(authUtil($require_perm,$perm_array,true)){
            ?>
                <li class="<?php if($newsletter != "") echo $cssClass;?>">
                    <a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý newsletter</span></a>
                    <ul class="submenu <?php if($newsletter != "") echo $cssClass;?>">
                        <li class="<?php if($newsletter != "") echo $cssClass;?>"><a class="ajax-link" href="newsletter.php" ><span class="hidden-tablet">Danh sách email khách hàng</span></a></li>
                    </ul>
                </li>
            <?php
				}
            ?>
            
            <?php
                $require_perm = array("edit customer", "view customer");
                if(authUtil($require_perm,$perm_array,false)){
            ?>
                <li class="<?php if($customer != "") echo $cssClass;?>">
                    <a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý khách hàng</span></a>
                    <ul class="submenu <?php if($customer != "") echo $cssClass;?>">
                        <li class="<?php if($customer != "") echo $cssClass;?>"><a class="ajax-link" href="customer.php" ><span class="hidden-tablet">Danh sách khách hàng</span></a></li>
                    </ul>
                </li>
            <?php
				}
            ?>
            
            <?php
                $require_perm = array("create staff","edit staff","delete staff","view staff");
                if(authUtil($require_perm,$perm_array,true)){
            ?>
            <li class="<?php if($userGroup != "" || $userGroupDetail != "" || $user != "" || $userDetail != "") echo $cssClass;?>">
				<a class="ajax-link" href="#"><span class="hidden-tablet bolded">Quản lý nhóm nhân viên</span></a>
				<ul class="submenu <?php if($userGroup != "" || $userGroupDetail != "" || $user != "" || $userDetail != "") echo $cssClass;?>">
					<li class="<?php if($userGroupDetail != "" && $action == NEW_ACTION) echo $cssClass;?>"><a class="ajax-link" href="user-group-detail.php?action=<?php echo NEW_ACTION; ?>" ><span class="hidden-tablet">Tạo mới nhóm nhân viên</span></a></li>
                    <li class="<?php if($userGroup != "") echo $cssClass;?>"><a class="ajax-link" href="user-group.php"><span class="hidden-tablet">Danh sách nhóm nhân viên</span></a></li>
                    <li class="<?php if($userGroupDetail != "" && $action == EDIT_ACTION) echo $cssClass;?>"><a class="ajax-link sep" href="user-group.php"><span class="hidden-tablet">Cập nhật nhóm nhân viên</span></a></li>
                    <li class="<?php if($userDetail != "" && $action == NEW_ACTION) echo $cssClass;?>"><a class="ajax-link" href="user-detail.php?action=<?php echo NEW_ACTION; ?>"><span class="hidden-tablet">Tạo mới tài khoản nhân viên</span></a></li>
                    <li class="<?php if($user != "") echo $cssClass;?>"><a class="ajax-link" href="user.php"><span class="hidden-tablet">Danh sách tài khoản nhân viên</span></a></li>
                    <li class="<?php if($userDetail != "" && $action == EDIT_ACTION) echo $cssClass;?>"><a class="ajax-link" href="user.php"><span class="hidden-tablet">Cập nhật tài khoản nhân viên</span></a></li>
				</ul>
			</li>
            <?php
                }
            ?>
			<!--<li><a class="ajax-link" href="form.php"><i class="icon-edit"></i><span class="hidden-tablet">Forms</span></a></li>
			<li><a class="ajax-link" href="table.php"><i class="icon-list-alt"></i><span class="hidden-tablet">Table</span></a></li>-->

		</ul>
		<!--<label id="for-is-ajax" class="hidden-tablet" for="is-ajax"><input id="is-ajax" type="checkbox"/> Ajax on menu</label>-->
	</div><!--/.well -->
</div><!--/span-->
<!-- left menu ends -->